package org.dtrd.modules.drug.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.drug.entity.po.DtrdExtEmsYwDrugCategory;

/**
 * @author qr
 * @date 2021/12/2 14:28
 */
@ApiModel("药品栏目列表信息")
@Getter
@Setter
public class DrugCategoryInfo {

    @ApiModelProperty("栏目id")
    private Integer dataId;

    @ApiModelProperty("栏目名字")
    private String columnName;

    @ApiModelProperty("所属分类")
    private String categoryName;

    public DrugCategoryInfo parseFromPo(DtrdExtEmsYwDrugCategory po) {
        dataId = po.getDataId();
        columnName = po.getCategoryName();
        return this;
    }
}
